package com.bluedot.www.core.pojo.DO;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 备份表,删除是真删除（物理删除）
 * </p>
 *
 * @author zhouxuan
 * @since 2021-08-07
 */
public class Backup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 备份编号
     */
    private Long id;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 备份位置
     */
    private String location;

    /**
     * 创建时间
     */
    private Timestamp gmtCreate;

    /**
     * 修改时间
     */
    private Timestamp gmtModified;

    /**
     * 保证反射方法 newInstance() 可以使用
     *
     * @author He Peng
     * @date 2021/9/9 14:42
     */
    public Backup() {
    }

    public Backup(Long id, String fileName, String location, Timestamp gmtCreate, Timestamp gmtModified) {
        this.id = id;
        this.fileName = fileName;
        this.location = location;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Timestamp getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Timestamp gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Timestamp getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Timestamp gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Backup{" +
                "id=" + id +
                ", fileName=" + fileName +
                ", location=" + location +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                "}";
    }
}
